package nccloud.web.arap.payablebill.action;

import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import nc.itf.payapblebill.IYTManageServer;
import nc.vo.pub.lang.UFDouble;
import nccloud.framework.service.ServiceLocator;
import nccloud.framework.web.container.IRequest;
import nccloud.web.codeplatform.framework.action.base.BaseAction;
import nccloud.web.codeplatform.framework.action.base.RequestDTO;
import nccloud.web.codeplatform.framework.action.base.RequstParamWapper;
import nccloud.web.codeplatform.framework.action.base.VOTransform;

public class GetYTMoneyAction extends BaseAction {

	@Override
	public Object doAction(IRequest request, RequstParamWapper paramWapper) throws Throwable {
		JSONObject json = JSONObject.parseObject(paramWapper.requestString);
		String pk = json.getJSONObject("value").getString("value");
		IYTManageServer server = ServiceLocator.find(IYTManageServer.class);
		UFDouble money = server.getMoney(pk);
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("money", money);
		return map;
	}

}
